<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnManualManHourInTaskTable extends AbstractMigration
{
    public function up()
    {
        $this->table('task')
            ->addColumn('manual_man_hour', 'decimal', [
                'default' => "0.00",
                'null' => false,
                'signed' => false,
                'precision' => 19,
                'scale' => 2,
                'comment' => "任务工时(人工预估)",
            ])
            ->save();
    }

    public function down()
    {
        $this->table('task')->removeColumn('manual_man_hour')->save();
    }
}
